package com.cos.utils;

import org.springframework.security.crypto.bcrypt.BCrypt;

public class PasswordUils{

    public static String hashpw(String password){
        return BCrypt.hashpw(password,BCrypt.gensalt());
    }

    public static  boolean checkPassword(String password,String password1){
        return BCrypt.checkpw(password,password1);
    }
}
